import request from "../utils/request.js";

// 定义获取商品信息的api
export const api_query = (data) => request.get("goods", data);

// 定义删除商品的api
export const api_delete = (id) => request.delete(`goods/${id}`)

// 定义修改商品信息的api
export const api_update = (data) => request.put(`goods/${data.id}`, data)


//定义添加商品的api
export const api_tianjia=(data)=>request.post("goods",data);